package lwj;

public class Testing {
    public static void main(String args[]){
        //实例化一堆实验室
        Lab lab1 = new Lab("计算机网络实验室",801);
        Lab lab2 = new Lab("组成原理实验室",807);
        Lab lab3 = new Lab("大学生创新实验室",707);
        Lab lab4 = new Lab("大学生创新实验室",708);

        //实例化学生
        Student stu1 = new Student("林予曦",2020310853);
        Student stu2 = new Student("天空",2023310853);

        //给学生分配实验室
        stu1.add_lab(lab1);
        stu1.add_lab(lab2);
        stu2.add_lab(lab3);
        stu2.add_lab(lab4);

        //评分
        int[] a= {5,4,5,7,9,8,10,7,5,8,9,7,9,5,7,9,8,6};//这里面是18个数，1-10之间
        int[] b= {5,10,7,5,8,8,7,9,5,7,9,8,6,5,7,9,8,6};
        int[] c= {5,6,7,9,8,8,7,9,7,7,9,8,8,10,7,5,7,9};
        int[] d= {5,10,7,5,8,8,7,9,5,7,9,8,6,10,7,5,8,9};
        Score sco1 = new Score("计算机网络实验室",a); //这个地方的name和上面lab1.2.3的名字一样，相对应就行
        Score sco2 = new Score("组成原理实验室",b);
        Score sco3 = new Score("大学生创新实验室",c);
        Score sco4 = new Score("大学生创新实验室",d);

        //评分传给每个对应实验室
        lab1.setScore(sco1);
        lab2.setScore(sco2);
        lab3.setScore(sco3);
        lab4.setScore(sco4);

        //算总收入钱数,然后算税后
        stu1.cal_money();  //总收入
        stu1.cal_tax();   //税后
        stu2.cal_money();
        stu2.cal_tax();







    }
}
